/**
 * 
 */
package com.thor.palmmall.rest.patrol.repair;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

import com.thor.commons.entity.BeanOperateInfo;
import com.thor.commons.exception.ThorServiceException;
import com.thor.commons.query.QueryResult;
import com.thor.palmmall.rest.common.AAssignInfo;
import com.thor.palmmall.rest.common.ASignInInfo;
import com.thor.palmmall.rest.common.AUserGroupLoadParam;
import com.thor.palmmall.rest.common.AUserGroupQueryParam;

/**
 * @author NuoSa
 *
 * @since 1.0
 */

@Path("/patrol/repair")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface APatrolRepairService {

  @POST
  @Path(value = "/create")
  String create(ADeviceMaintain4Create bill, @QueryParam("") BeanOperateInfo operInfo)
      throws ThorServiceException;

  @POST
  @Path(value = "/{id}")
  ADeviceMaintainInspect get(@PathParam("id") String id, AUserGroupLoadParam param)
      throws ThorServiceException;

  @POST
  @Path(value = "/save")
  String save(ADeviceMaintainInspect bill, @QueryParam("") BeanOperateInfo operInfo)
      throws ThorServiceException;

  @POST
  @Path(value = "/query")
  QueryResult<ADeviceMaintainInspect> query(AUserGroupQueryParam queryParam)
      throws ThorServiceException;

  @POST
  @Path(value = "/signIn")
  void signIn(ASignInInfo signInInfo) throws ThorServiceException;

  @POST
  @Path(value = "/assign")
  void assign(AAssignInfo assignInfo) throws ThorServiceException;

}
